/****************************************************************


****************************************************************/
/*
#define LCD_CS_DDR  DDRA
#define LCD_CS_PORT PORTA
#define LCD_CS_PIN  PINA
#define LCD_CS_BIT  0

#define LCD_RST_DDR  DDRA
#define LCD_RST_PORT PORTA
#define LCD_RST_PIN  PINA
#define LCD_RST_BIT  1

#define LCD_A0_DDR  DDRA
#define LCD_A0_PORT PORTA
#define LCD_A0_PIN  PINA
#define LCD_A0_BIT  2

#define LCD_SCL_DDR  DDRA
#define LCD_SCL_PORT PORTA
#define LCD_SCL_PIN  PINA
#define LCD_SCL_BIT  3

#define LCD_SD_DDR  DDRA
#define LCD_SD_PORT PORTA
#define LCD_SD_PIN  PINA
#define LCD_SD_BIT  4
*/

#include <LM3Sxxxx.H>


#define RST GPIO_PIN_2
#define A0	GPIO_PIN_3
#define	SCL	GPIO_PIN_2
#define CS	GPIO_PIN_3
#define SD	GPIO_PIN_5


#define LCD_CS_H() GPIOPinWrite(GPIO_PORTA_BASE, CS ,CS)
#define LCD_CS_L() GPIOPinWrite(GPIO_PORTA_BASE, CS ,~CS)

#define LCD_A0_H() GPIOPinWrite(GPIO_PORTB_BASE, A0 ,A0)
#define LCD_A0_L() GPIOPinWrite(GPIO_PORTB_BASE, A0 ,~A0)

#define LCD_RST_H() GPIOPinWrite(GPIO_PORTB_BASE, RST ,RST)
#define LCD_RST_L() GPIOPinWrite(GPIO_PORTB_BASE, RST ,~RST)

#define LCD_SD_H() GPIOPinWrite(GPIO_PORTA_BASE, SD ,SD)
#define LCD_SD_L() GPIOPinWrite(GPIO_PORTA_BASE, SD ,~SD)

#define LCD_SCL_H() GPIOPinWrite(GPIO_PORTA_BASE, SCL ,SCL)
#define LCD_SCL_L() GPIOPinWrite(GPIO_PORTA_BASE, SCL ,~SCL)




